package com.kc.gb.device.plugins.strip.driver;

import java.util.TimerTask;

class CheckControlTask extends TimerTask {
    public AtopControl atopItem = null;

    public void run() {
        try {
            System.out.println("开始检查socket连接");
            if (atopItem != null) {
                if (atopItem.IsConnect) {
                    atopItem.CheckAlltag();
                } else {
                    atopItem.RecreateCurSocket();
                }
            }
        } catch (Exception ex) {
            ex.printStackTrace();
        }
        System.gc();
    }
}